package com.itcoon.cloud.framework.mybatis.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.itcoon.cloud.framework.enums.CodeEnum;
import com.itcoon.cloud.framework.enums.DescribedEnum;

/**
 * 初始化类型
 */
public enum InitType implements CodeEnum<InitType>, DescribedEnum<InitType> {
    INNER(10, "内置"),
    CUSTOM(20, "自定义")
    ;

    @EnumValue
    private final int code;

    private final String description;

    InitType(int code, String description) {
        this.code = code;
        this.description = description;
    }

    @Override
    public String description() {
        return this.description;
    }

    @Override
    public Integer value() {
        return this.code;
    }
}
